#include"../http/http.hpp"

int main()
{
    Socket cli_sockt;
    cli_sockt.CreateClient(8080, "127.0.0.1");
    std::string str=" GET /hello HTTP/1.1\r\nConnection: keep-alive\r\nContent-Length: 0\r\n\r\n";
    while (1)
    {
        /* code */
        assert(cli_sockt.Send(str.c_str(),str.size())!=-1);
        char buf[1024]={0};
        assert(cli_sockt.Recv(buf,1023));
        LOG_DEBUG("[%s]",buf);
        sleep(15);
    }
    cli_sockt.Close();
    return 0;

}